package dao;

import java.io.File;

import bean.PostBean;

//TODO
/**
 * Class responsible for the operations of PostDAO
 * @author Otavio Lima, Laura Dutra
 *
 */
public class PostDAO extends AbstractDAO<PostBean> {
	
	private static final File DB = new File("./PostDB.xml");

	private static PostDAO instance;

	/**
	 * Constructor 
	 */
	private PostDAO(){

	}


	/**
	 * Singleton 
	 * @return instance of PostDAO
	 */

	public static synchronized PostDAO getInstance(){
		if(instance == null)
			instance = new PostDAO();

		return instance;
	}


	@Override
	protected File getDBFileName() {
		return DB;
	}

}

